package com.furongji.common.utils;

public class UserThreadLocalUtil {

    private static final ThreadLocal<String> userThreadLocal = new ThreadLocal<>();

    public static void setUser(String userInfo) {
        userThreadLocal.set(userInfo);
    }

    public static String getUser() {
        return userThreadLocal.get();
    }

    public static void removeUser() {
        userThreadLocal.remove();
    }
}
